home *** CD-ROM | disk | FTP | other *** search
- on(release){
- function two(x)
- {
- return (x <= 9 ? "0" : "") + x;
- }
- function three(x)
- {
- var _loc1_ = x;
- return (_loc1_ <= 99 ? "0" : "") + (_loc1_ <= 9 ? "0" : "") + _loc1_;
- }
- function displaytime(ms)
- {
- var _loc2_ = Math.floor(ms / 1000);
- ms %= 1000;
- var _loc1_ = three(ms);
- var _loc3_ = Math.floor(_loc2_ / 60);
- _loc2_ %= 60;
- _loc1_ = two(_loc2_) + ":" + _loc1_;
- var hr = Math.floor(_loc3_ / 60);
- _loc3_ %= 60;
- _loc1_ = two(_loc3_) + ":" + _loc1_;
- return _loc1_;
- }
- _root.totalrace = displaytime(_root.racetimer);
- _root.bestlap = displaytime(_root.bestlaptime);
- stopAllSounds();
- gotoAndPlay(3);
- }
-